import '@/assets/main.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { createApp } from 'vue'

import App from '@/App.vue'
import pinia from '@/stores'
import { router, guard } from '@/router'
import '@/assets/fonts/iconfont.css'
import 'element-plus/dist/index.css'

const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
app.use(pinia)
app.use(router)
guard(router)
app.mount('#app')
